package com.gitee.ykr.lightweight.rpc.annotation;

import com.gitee.ykr.lightweight.rpc.registar.NettyRpcRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author YKR
 * @Describe
 * @date 2021/8/17
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import(NettyRpcRegistrar.class)
public @interface EnableNettyRpc {

    String[] basePackages() default {};
}
